<template>
	<view :class="currentTheme">
		<a-nabbar :name="title" />
		<mescroll-body  @init="mescrollInit"  @down="downCallback"  @up="upCallback">
			<view class=" u-padding-left-32 u-padding-right-32">
				<view  v-for="(item,index) in dataList" :key="index" class="u-margin-top-20">
					<list-item :item="item.product" @click.native="goPathDetail(item.product,item.driveCar)" :isShare="false"></list-item>
				</view>
			</view>
		</mescroll-body>
	</view>
</template>

<script>
	import upCallback from '@/mixins/upCallbackMixin.js'
	export default {
		mixins:[upCallback],
		computed: {
			title() {
				return this.form.text 
			}
		},
		data() {
			return {
				dataList:[],
				apiModule:'shopApi',
				apiType:'driveCar/findDriveCarUserLogs',
				form:{text:'列表'}
			}
		},
		onLoad(option) {
			this.form = option;
		},
		methods: {
			goPathDetail(item,driveCarItem){
				this.$u.route({
					url:'/pagesA/itemDetail/itemDetail',
					params:{
						id: driveCarItem.exhibitProductId,
						productId:item.id,
						type:'detailTestReply' //参展剧本评价
					}
				})
			}
		},
	}
</script>

<style lang="scss" scoped>
	.addlarp-btn-box{
		padding: 0 283rpx;
	}
	.page-title{
		&::after{
			content: '';
			display: block;
			height: 4rpx;
			width: 320rpx;
			margin: 27rpx auto;
			background-color: $primary;
		}
	}
</style>
